﻿/*----------------------------------------------------------------
//  <copyright file="EmailSendDto.cs" company="MicroCloud@151504200868">
//      Copyright © 2020-2024 MicroCloud Corporation, All rights reserved.
//  </copyright>
//  <site>https://gitee.com/chenmm123/microclouds</site>
//  <last-editor>cmm</last-editor>
//  <last-date>2023-09-14 11:36</last-date>
//----------------------------------------------------------------*/

namespace MicroCloud.Dtos
{
    #region "邮件发送DTO"
    /// <summary>
    /// 邮件发送DTO
    /// </summary>
    public class EmailSendDto
    {
        #region "属性"
        #region "获取或设置 邮件主题"
        /// <summary>
        /// 获取或设置 邮件主题
        /// </summary>
        [DisplayName("邮件主题")]
        public string Subject { get; set; }
        #endregion
        #region "获取或设置 邮件正文内容"
        /// <summary>
        /// 获取或设置 邮件正文内容
        /// </summary>
        [DisplayName("邮件正文内容")]
        public string Body { get; set; }
        #endregion
        #region "获取或设置 邮件正文格式"
        /// <summary>
        /// 获取或设置 邮件正文格式
        /// </summary>
        [DisplayName("邮件正文格式")]
        public EmailBodyFormat BodyFormat { get; set; } = EmailBodyFormat.Html;
        #endregion
        #region "获取或设置 邮件附件"
        /// <summary>
        /// 获取或设置 邮件附件
        /// </summary>
        [DisplayName("邮件附件")]
        public EmailAttachmentDto[] Attachments { get; set; } = Array.Empty<EmailAttachmentDto>();
        #endregion

        #region "获取或设置 收件人"
        /// <summary>
        /// 获取或设置 收件人
        /// </summary>
        [DisplayName("收件人")]
        public string[] ToEmails { get; set; } = Array.Empty<string>();
        #endregion
        #region "获取或设置 抄送"
        /// <summary>
        /// 获取或设置 抄送
        /// </summary>
        [DisplayName("抄送")]
        public string[] CcEmails { get; set; } = Array.Empty<string>();
        #endregion
        #region "获取或设置 密送"
        /// <summary>
        /// 获取或设置 密送
        /// </summary>
        [DisplayName("密送")]
        public string[] BccEmails { get; set; } = Array.Empty<string>();
        #endregion

        #endregion

    }
    #endregion

}
